package com.education.dao;

import com.education.pojo.TestPaper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TestPaperMapper {
    int deleteByPrimaryKey(Integer tpId);

    int insert(TestPaper record);

    int insertSelective(TestPaper record);

    TestPaper selectByPrimaryKey(Integer tpId);
    //石维  根据科目ID和班级ID获取试卷
    List<TestPaper> selectBySubjectIdAndGradeId(@Param("sid") Integer sid, @Param("gid") Integer gid, @Param("tpname") String tpname);
    int updateByPrimaryKeySelective(TestPaper record);

    int updateByPrimaryKey(TestPaper record);

    /**
     * 吴忠键   根据试卷ID 获得书卷名称
     */
    String selectUserErrorTpNameList(Integer tpId);
}